package week3;

import java.util.Scanner;
public class pp3_4 {
    public static void main(String[] args) {
        double a;
        int b;
        int c;
        Scanner scan = new Scanner(System.in);

        System.out.println("请输入浮点数：");
        a = scan.nextDouble();

        b = (int)Math.ceil(a);
        c = (int)Math.floor(a);

        System.out.println("不大于该值的最大整数："+ c);
        System.out.println("不大于该值的最小整数：" + c);

    }
}
